import request from "@/utils/request";


// 查询需要排班的用户列表 可以传部门ID 如果部门ID为空，则直接显示所有
export function queryUsersNeedScheduling(deptId) {
	return request({
		url: '/docter/api/scheduling/queryUsersNeedScheduling',
		params: {deptId: deptId}
	})
}

// 查询排班
export function queryScheduling(data) {
	return request({
		url: '/docter/api/scheduling',
		method: 'POST',
		data
	})
}

/**
 * 保存排班数据
 * @param data
 * @returns {*}
 */
export function saveScheduling(data) {
	return request({
		url: 'docter/api/scheduling/saveScheduling',
		method: 'post',
		data: data
	})
}

/**
 * 条件查询排班医生列表信息
 * @param data
 * @returns {*}
 */
export function findSchedulingList(data) {
	return request({
		url: "/docter/api/scheduling/findSchedulingList",
		method: "POST",
		data
	})
}

// 查询我的排班
export function queryMyScheduling(data) {
	return request({
		url: '/docter/api/scheduling/queryMyScheduling',
		method: 'post',
		data
	})
}

